package com.marvels.approve.process.dto;

import java.io.Serializable;
import java.util.Date;

public class ApiResponse<T> implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String msg;
    private int code;
    private Date responseTime;
    private T data;
    
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public Date getResponseTime() {
		return responseTime;
	}
	public void setResponseTime(Date responseTime) {
		this.responseTime = responseTime;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	public void setCodeAndMessage(int code, String msg){
		this.code = code;
		this.msg = msg;
	}
	
	@Override
	public String toString() {
		return "ApiResponse [msg=" + msg + ", code=" + code + ", responseTime=" + responseTime + ", data=" + data + "]";
	}

	
}
